package kr.hkit.androidcomplete02.ch01;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class ButtonSelector extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.button_selector);
		
		Button btn = (Button) findViewById(R.id.btnexit);
		btn.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
			Toast.makeText(ButtonSelector.this, "Exit Button Clickd",
					Toast.LENGTH_SHORT).show();	
			}
		});
	}
}
